import { baseRequest } from "@/utils/request";
const request = (url, ...arg) =>
  baseRequest(`/admin/v1/plan/apply/${url}`, ...arg);

export default {
  // 获取人员分页
  queryPage(data) {
    return request("queryPage", data);
  },
  queryArrangePage(data) {
    return request("queryArrangePage", data);
  },
  arrange(data) {
    return request("arrange", data);
  },
  clearData(data) {
    return request("clearApply", data);
  },
  checkIn(data) {
    return request("checkIn", data);
  },
  queryCheckInCount(data) {
    return request("queryCheckInCount", data);
  },
  cancelCheck(data) {
    return request("cancelCheck", data);
  },
  queryCheckInGroup(data) {
    return request("queryCheckInGroup", data);
  },
  checkInGroup(data) {
    return request("checkInGroup", data);
  },
  cancelCheckGroup(data) {
    return request("cancelCheckGroup", data);
  },
  queryTestProjectResult(data) {
    return request("queryTestProjectResult", data);
  },
  exportArrange(data) {
    return request("exportArrange", data, "post", {
      responseType: "blob",
    });
  },
  exportPublicity(data) {
    return request("exportPublic", data, "post", {
      responseType: "blob",
    });
  },
  exportArrangeExcel(data) {
    return request("exportArrangeExcel", data, "post", {
      responseType: "blob",
    });
  },
  exportArrangeTicket(data) {
    return request("exportArrangeTicket", data, "post", {
      responseType: "blob",
    });
  },
  lockResult(data) {
    return request("lockResult", data);
  },
  updateProjectNames(data) {
    return request("updateProjectNames", data);
  },
  deleteApplyProject(data) {
    return request("deleteApplyProject", data);
  },
};
